﻿using Lsk.Business;
using Lsk.Business.DTO;
using Lsk.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace lsk.Web.Api
{
    public class UsefulInfoController : ApiController
    {
        [HttpGet]
        public IEnumerable<GetUsefulInfo_Result> GetUsefulInfo()
        {
            UsefulInfo newManager = new UsefulInfo();
            return newManager.GetUsefulInfo();
        }

        [HttpGet]
        public UsefulInfoMessage GetUsefulInfo(string id)
        {
            UsefulInfo newManager = new UsefulInfo();
            return newManager.GetUsefulInfo(id);

        }
    }
}
